//
//  DPViewController.m
//  KAnimation
//
//  Created by Kien Tran on 5/31/13.
//  Copyright (c) 2013 TTK. All rights reserved.
//

#import "DPViewController.h"

@interface DPViewController ()

@end

@implementation DPViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
//    [KABasicAnimation fadeOut:self.button inDuration:1.0f delay:0.0f options:0 withCompletionBlock:^(BOOL finished) {
//        NSLog(@"Kien");
//    }];
    //[KABasicAnimation rotate360:self.button inDuration:3 withLoopNumber:-1 rightToLeft:NO];
    //[KABasicAnimation shake:self.button inDuration:0.25f withRepeat:3];
    [KABasicAnimation rotate360:self.button withLoopNumber:10];
}
@end
